<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="index_style.css"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        session_start();
        if (!isset($_SESSION['userid']))
        {
            echo"User not logged in";
            echo"</html>";
            exit();
        }

        if (isset($_POST['textid']))
        {
            include 'ClassLibs/statics.php';
            $rsResult = rsText($_POST['textid']);
            $row = mysql_fetch_assoc($rsResult);
            echo "<table border=\"1\">
                    <tr>
                    <td>{$row['ID']}</td><td>{$row['UserName']}</td><td>{$row['Date']}</td>
                    </tr>
                 </table>
                    <table border=\"1\">
                         <tr>
                            <td>{$row['Post']}</td>
                         </tr>
                    </table>";
        }
        ?>
    </body>
</html>
